<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:customJSF="http://csc/fresher/jsf-custom-components/">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>CSC - Login Page</title>
<link rel="stylesheet" type="text/css" href="css/css1.css" />
<f:metadata>
	<f:event listener="#{internetLoginManageBean.checkLogin}" type="preRenderView"></f:event>
</f:metadata>
</head>
<h:body>
	<f:view>
		<div>
			<div id="top">
				
			</div>
			<div id="middle" style="padding-left: 200px;">

				<div id="content" style="padding: 20px;">
					<div id="loginForm"
						style="border: 1px solid black; margin-left: 20px; display: inline-block;">
						<b>Please sign in</b>
						<h:form>
							<table>
								<tr>
									<td>Username</td>
									<td><h:inputText label="Username"
											value="#{internetLoginManageBean.username}" required="true" /></td>

								</tr>
								<tr>
									<td>Password</td>

									<td>
										<h:inputSecret label="Password"
											value="#{internetLoginManageBean.password}" required="true" >
											<f:validateLength minimum="6"></f:validateLength>
										</h:inputSecret>
									</td>
								</tr>
								<tr>
									<td>Captcha</td>
									<td><customJSF:recaptcha id="rc"
											publicKey="6LcL1-8SAAAAAGTLeVPoGWgsz675UtEaGCaooROB"
											privateKey="6LcL1-8SAAAAALShTZBOMIRv4CVovgNXvHJ3IyQn">
											<f:validator validatorId="csc.fresher.commons.validator" />
										</customJSF:recaptcha> </td>
								</tr>
								<tr>
									<td><h:commandButton value="Login"
											action="#{internetLoginManageBean.login}" /></td>
									<td><h:messages style="color:red" /></td>
								</tr>
							</table>
						</h:form>
					</div>
					<div
						style="float: right; width: 40%; margin-top: 70px; display: inline-block;">
						<h2>Welcome to CSC Internet Banking</h2>
						Just with some clicks, you know everything about your accounts,
						from anywhere in the world. To save your time, use the Banking
						Online service provided by Vietcombank. Such as, online banking,
						billing, fund transfer... We are available 24 hours per day, 7
						days per week.</div>

				</div>
			</div>

		</div>
	</f:view>
</h:body>
</html>